]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ci: Fix check-commit-log test failure count
authorJonas Ådahl <jadahl@gmail.com>
Fri, 20 Nov 2020 16:34:19 +0000 (17:34 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Fri, 20 Nov 2020 16:34:19 +0000 (17:34 +0100)
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1505>

.gitlab-ci/check-commit-log.sh

index 00fd89388482301459af16e5f98f110aa61ad4ff..ac74b9bdc8c6548de5e95edded506952c0111a5d 100755 (executable)
@@ -38,7 +38,7 @@ function append_passed_test_case() {
 function generate_junit_report() {
   junit_report_file="$1"
   num_tests=$(cat "$JUNIT_REPORT_TESTS_FILE" | wc -l)
-  num_failures=$(grep '<failure />' "$JUNIT_REPORT_TESTS_FILE" | wc -l )
+  num_failures=$(grep '<failure ' "$JUNIT_REPORT_TESTS_FILE" | wc -l )
 
   echo Generating JUnit report \"$(pwd)/$junit_report_file\" with $num_tests tests and $num_failures failures.